package io.renren.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.entity.WxuserEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 * 
 * @author kylin
 * @email 1360315221@qq.com
 * @date 2019-02-26 22:41:58
 */
@Mapper
public interface WxuserDao extends BaseMapper<WxuserEntity> {

    /**
     * 查询是否是第一次写入数据库
     */
    WxuserEntity selectOpenIdIsExist(String openid) throws Exception;

    /**
     * 插入新增的用户信息
     */
    Integer insertSelective(WxuserEntity wxuserEntity) throws Exception;

    /**
     * 更新学生信息并
     */
    Integer updateInfo(WxuserEntity wxuserEntity) throws Exception;
    /**
     * 进行返回用户唯一编号 uuid
     */
    String RtnWxStuUuid(String openid) throws Exception;
}
